Developer Documentation
PATHJava Developer Documentation > Mac OS Runtime for Java > JManager > Programming With JManager


The JMAppletViewer Interface

The JMAppletViewer interface contains methods related to manipulating applets.

package com.apple.mrj.JManager;

/* A JMAppletViewerObject represents an object that displays applets. */
/* It has an independent securty object, per applet */
/* @see JMAWTContext */
/* @see JMAppletViewerSecurity */

public interface JMAppletViewer {

    /* @Return the "C" version of the JMAppletViewerRef */
    public int getViewerRef();

    /* @Return the client specified data associated with this applet */
    public int getClientData() throws JManagerException;

    /* Set the client-specific data associated with this applet */
    /* @param data the new data to set. */
    public void setClientData(int data) throws JManagerException;

    /* Return the context associated with this applet */
    public JMAWTContext getContext() throws JManagerException;

    /* Return the java.applet.Applet object instantiated for this applet */
    /* @see java.applet.Applet */
    public java.applet.Applet getApplet() throws JManagerException;

    /* Reload the applet's bytecodes and reinitialize it. */
    public void reloadApplet() throws JManagerException;

    /* Restart the applet without reloading its byte codes */
    public void restartApplet() throws JManagerException;

    /* Call the applets stop() method. */
    public void suspendApplet() throws JManagerException;

    /* Call the applets start() method. */
    public void resumeApplet() throws JManagerException;

    /* Return the frame that this viewer is visible in (if any) */
    public JMFrame getViewerFrame() throws JManagerException;
}

© 1998 Apple Computer, Inc. — (Last Updated 3 Dec 98)